Skip to main content

All Questions

Tagged with
0votes
0answers
23views

Connections not kept alive with ServerAliveInterval passed from SSH

After openssh 9.2, it is recommended to use ChannelTimeout and UnusedConnectionTimeout that provide granular idle session/connection timeout and behaviour of ClientAliveCountMax=0 parameter was ...
Chirag Chandnani's user avatar
-2votes
2answers
192views

locked out of my server Permission denied (publickey)

I was connected to my server. i edited the /root/.ssh/authorized_keys and added ----BEGIN RSA PRIVATE KEY-----at the start of the public key and -----END RSA PRIVATE KEY-----at the end of the public ...
Huzaifa Malik's user avatar
1vote
2answers
1kviews

Issue with SSH Client Alive Interval in sshd_config

We are currently using SSH for our project, and we need to implement a feature where SSH users are logged off after 1 minute of inactivity. Below are excerpts from our ssh_config and sshd_config files:...
karkator's user avatar
0votes
0answers
34views

Error encountered when trying to login on remote system [duplicate]

When trying to log on remote system using ssh, I encounter the following error : Unable to negotiate with 172.15.239.54 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss How do I ...
Rails metasphloit's user avatar
0votes
1answer
288views

Setting up a SSH Lab using docker on my local machine

I am using docker ubuntu container to set up an SSH lab on my local machine. I have interactively started the container and installed open ssh on it with other tools. I ensured that I port forward ...
sourabh dhingra's user avatar
1vote
2answers
330views

Can two linux users share .ssh folder keys to connect to an SSH server

I have two linux users user1 - regular account with auth key stored in /home/user1/.ssh/ user2 - service account without home directory How can user2 access user1's keys to connect to the remote ...
try.aaam's user avatar
0votes
0answers
100views

Incorrect MAC error while using ssh from windows to linux

I am trying to ssh from a windows system to an azure centos vm. But I am getting error incorrect MAC ... On further checking i identified it only happens when the mac algorithm used is umac-128-etm@...
Zez s Shin's user avatar
1vote
2answers
6kviews

ssh: connect to host <host name/ip> port 22: Connection timed out

When attempting to connect to the tryhackme provided IP address we get port 22: connection timed out even while our ssh server is active When I attempt to ssh -vvv [email protected] I get the ...
Leaked Magenta's user avatar
1vote
1answer
50views

Own SSH key file to tie up for SSH access to a foreign Linux server

We are to have SSH access to client's Linux server for code installation and launch. As the client has given us FTP connection client has also said: "SSH access: Can you send me your SSH key. I ...
Igor Savinkin's user avatar
2votes
1answer
621views

How to completely disable SSH commenting?

I am trying to completely disable SSH comments. Running ssh-keygen -C "" -f test results in: ssh-keygen -l -f test.pub 3072 SHA256:Ir9Q4ykMBl0zx/NaCQGGx/qmEFIX84qaHDzFA0SzevE no comment (...
cppbest's user avatar
0votes
0answers
4kviews

How to solve the error kex_exchange_identification: read: Connection reset by peer Connection reset by ::1 port 2022

I use Kali linux and I would like to connect in localhost on my own system with ssh but when I do ssh root@localhost -p 2022 I get the error kex_exchange_identification: read: Connection reset by ...
idris's user avatar
3votes
1answer
12kviews

sshd_config with Multiple Match Address

I am trying to understand an sshd configuration that I believe should not work but does. The premise comes from a production system I’m working on; however, I simplified it for my own testing. Since I ...
daveob's user avatar
2votes
1answer
883views

Why does running sudo systemctl stop ssh over ssh not immediately terminate the ssh session

Let's say I currently have an ssh session with a remote computer, and I run the following command: sudo systemctl stop ssh and after running: systemctl status ssh to verify the status of the service, ...
Krishna Raju's user avatar
1vote
1answer
395views

How to restrict SSH login post ssh-copy-id

Environment:- Server–1 Ubuntu 18.04.6 LTS OpenSSH_7.6p1 Ubuntu-4ubuntu0.7, OpenSSL 1.0.2n 7 Dec 2017 Server-2 Ubuntu 18.04.6 LTS OpenSSH_7.6p1, OpenSSL 1.0.2n 7 Dec 2017 From Server-1 executed ssh-...
user4948798's user avatar
45votes
5answers
221kviews

SSH authentication issue with OpenSSH private key

I have an issue while trying to use the SSH command on my Kali Linux system (version 16.0-kali6-amd64, 2022-03-23). I'm attempting to authenticate using an OpenSSH private key. I started by using the ...
Substantial-Code0's user avatar

153050per page
close